package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;

/**
 * <p>
 * 仓库商品详情表
 * </p>
 *
 * @author leehao
 * @since 2019-07-02
 */
public class WWarehouseDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 仓库ID
     */
    private Integer wid;

    /**
     * 商品编码
     */
    private String proCode;

    /**
     * 商品详情ID
     */
    private Integer skuId;

    /**
     * 数量
     */
    private Integer qty;

    /**
     * 版本号
     */
    @Version
    private Integer version;

    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String proName;

    /**
     * 规格名称
     */
    @TableField(exist = false)
    private String specName;

    public WWarehouseDetail() {
    }

    public WWarehouseDetail(Integer wid, String proCode, Integer skuId, Integer qty) {
        this.wid = wid;
        this.proCode = proCode;
        this.skuId = skuId;
        this.qty = qty;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getWid() {
        return wid;
    }

    public void setWid(Integer wid) {
        this.wid = wid;
    }
    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }
    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }
    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    @Override
    public String toString() {
        return "WWarehouseDetail{" +
        "id=" + id +
        ", wid=" + wid +
        ", proCode=" + proCode +
        ", skuId=" + skuId +
        ", qty=" + qty +
        ", version=" + version +
        "}";
    }
}
